<?php
class StoreModel extends StoreAppModel {
	var $name = 'StoreModel';
	var $displayField = 'name';
	
	var $hasAndBelongsToMany = array(
	'StoreProduct' =>
		array( 	'className' => 'StoreProduct',
				'joinTable' => 'store_product_models',
				'foreignKey' => 'model_id',
				'associationForeignKey' => 'product_id',
				'order' => 'StoreModel.name',
				'unique' => true
			 )
	);
}
?>